Skip to main content

initialize

Create an object from Predis.ai SDK.

Usage

const predis = new window.Predis();
predis.initialize({
appId: "YOUR_APP_ID",
embedToken: "SSO_TOKEN" // optional, to enable SSO
});

Parameters

NameDescriptionTypeRequired
appIdApp ID received from Predis.ai account.Stringyes
embedTokenA token generated with the provided SSO key to enable Single Sign-onStringno
whiteLabelLogoPass your logo URL to replace Predis.ai Logo in the SDK. This will take effect only with the Whitelabel SDK Addon available in the SDK pricing.Stringno
downloadHiddenPass true to hide the Download button in the SDK library page and inside the editor. This is defaulted to false.Stringno
publishHiddenPass true to hide the Publish button in the SDK library page and inside the editor. This is defaulted to false.Stringno
combinePublishAndDownloadVisiblePass true to show the combined "Download & publish" button. This basically combines both features. This is defaulted to false.Stringno
closeOnPublishPass false to stop closing of SDK on clicking of publish button. This is used for cases where you want your users to close the SDK manually instead of doing it automatically. This is defaulted to true.Stringno